{include file="public/header" /}
<div class="layui-body">
    <!--tab标签-->
    <div class="layui-tab layui-tab-brief">
        <ul class="layui-tab-title">
            <li class="layui-this">节点添加</li>
            <li class="layui-btn"><a href="javascript:void(0)"  onclick="back()" style="color: white">返回上一页</a></li>
        </ul>
        <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">
                <form class="layui-form form-container" action="{:url('add')}" method="post">
                    <div class="layui-form-item">
                        <label class="layui-form-label">节点名</label>
                        <div class="layui-input-block">
                            <input type="text" name="nodename"  class="layui-input" >
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">链接地址</label>
                        <div class="layui-input-block">
                            <input type="text" name="link" value="" required  lay-verify="required"  class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">状态选择</label>
                        <div class="layui-input-block">
                            <select name="sort">
                                <option value ="0">启用</option>
                                <option value ="1">禁用</option>
                            </select>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <button class="layui-btn" lay-submit lay-filter="submit">提交</button>
                            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
<script>
    function back(){
        history.back()
    }
</script>
{include file="public/footer" /}